package com.xiaozhichao.databafflesys.route.controller;

import com.xiaozhichao.databafflesys.repository.service.BaffleAppService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author:xiaozhichao
 * @date:2021/3/22
 */
@RestController
public class HelloController {

    @Autowired
    BaffleAppService app;

    @RequestMapping("/sayHello")
    public String hello(){
        return "hello " + app.count();
    }
}
